﻿@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        $.ajax({
            url: "/SystemManage/Role/GetFormJson",
            data: { keyValue: keyValue },
            dataType: "json",
            async: false,
            success: function (data) {
                $("#form1").formSerialize(data);
                $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
                $("#form1").find('div.ckbox label').attr('for', '');
            }
        });
    })
    //function initControl() {
    //    $("#F_OrganizeId").bindSelect({
    //        url: "/SystemManage/Organize/GetTreeSelectJson",
    //    });
    //    $("#F_Type").bindSelect({
    //        url: "/SystemManage/ItemsData/GetSelectJson",
    //        param: { enCode: "RoleType" }
    //    });
    //    $('#wizard').wizard().on('change', function (e, data) {
    //        var $next = $("#btn_next");
    //        if (data.direction == "next") {
    //            switch (data.step) {
    //                case 1:
    //                    $next.attr('disabled', 'disabled');
    //                    break;
    //                default:
    //                    break;
    //            }
    //        } else {
    //            $next.removeAttr('disabled');
    //        }
    //    });
    //    $("#permissionTree").treeview({
    //        height: 493,
    //        showcheck: true,
    //        url: "/SystemManage/RoleAuthorize/GetPermissionTree",
    //        param: { roleId: keyValue }
    //    });
    //}
</script>
<form id="form1">
    <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#">基本信息</a></li>
        </ul>
        <div style="padding-top: 20px; margin-right: 30px;">
            <table class="form">
                <tr>
                    <th class="formTitle">角色名称</th>
                    <td class="formValue">
                        <input id="rolename" name="rolename" type="text" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">角色编号</th>
                    <td class="formValue">
                        <input id="rolecode" name="rolecode" type="text" class="form-control" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">角色有效时间</th>
                    <td class="formValue">
                        <input id="roleexpiretime" name="roleexpiretime" type="text" class="form-control" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
